package name.luojun.orm.model;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
public class SimpleTable {
	private String name;
	private PrimaryKey primarykey;
	private Map<String,ForeignKey> foreignkeys;
	private Map<String,UniqueKey> uniquekeys;
	private Map<String,Index> Indexes;
	private Map<String, SimpleColumn> columns = new LinkedHashMap<String, SimpleColumn>();
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public PrimaryKey getPrimarykey() {
		return primarykey;
	}
	public void setPrimarykey(PrimaryKey primarykey) {
		this.primarykey = primarykey;
	}
	
	public Map<String, SimpleColumn> getColumns() {
		return columns;
	}
	public SimpleColumn getColumn(String columnname) {
		return columns.get(columnname);
	}
	public void addColumn(SimpleColumn column) {
		columns.put(column.getName(), column);
	}
	
}
